package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.pojos.WmUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Api(tags = "wemedia")
public interface WmUserControllerApi {
    //保存自媒体用户
    @ApiOperation("保存自媒体用户")
    ResponseResult save(@RequestBody WmUser wmUser);
    //按照名称查询用户
    @ApiOperation("查询用户")
    WmUser findByName(@PathVariable("name") String name);

    //根据id查询自媒体用户
    WmUser findWmUserById(Long id);
}
